// 使用cookie存储token
import Cookies from 'js-cookie'

const TokenKey = 'hr-sass-141'

// 获取本地存储的token
export function getToken() {
  return Cookies.get(TokenKey)
}

// 存储token
export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

// 删除本地token
export function removeToken() {
  return Cookies.remove(TokenKey)
}
